package top.kaoshanji.r2ch07d;

import java.sql.SQLException;

/**
 * 代码清单-r2ch07d-238页a：抛出异常的业务方法
 * @author kaoshanji
 * ^_^
 * create time 2025/5/7 17:50
 */
public class ForumService {

    public void removeForum(int forumId) {
        throw new RuntimeException("...运行异常...");
    }

    public void updateForum(Forum forum) throws Exception {
        throw new SQLException("...数据更新操作异常...");
    }

}
